<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_painter_command.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__painter__command_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_painter_command.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_painter_command.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#a0a3ce67b97475d9ff41c26542d216e22">   13</a></span>&#160;<a class="code" href="class_qwt_painter_command.html#a0a3ce67b97475d9ff41c26542d216e22">QwtPainterCommand::QwtPainterCommand</a>()</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    : m_type( Invalid )</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;}</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#a8648ff991175d5f06bae6b04df06bd03">   19</a></span>&#160;<a class="code" href="class_qwt_painter_command.html#a0a3ce67b97475d9ff41c26542d216e22">QwtPainterCommand::QwtPainterCommand</a>( <span class="keyword">const</span> QPainterPath&amp; path )</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    : m_type( Path )</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;{</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    m_path = <span class="keyword">new</span> QPainterPath( <a class="code" href="class_qwt_painter_command.html#a19fa09138a8775e721817d4ca309f5ac">path</a> );</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;}</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#a7dae6c078fdb8d173358e988f06e2163">   34</a></span>&#160;<a class="code" href="class_qwt_painter_command.html#a0a3ce67b97475d9ff41c26542d216e22">QwtPainterCommand::QwtPainterCommand</a>( <span class="keyword">const</span> QRectF&amp; rect,</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <span class="keyword">const</span> QPixmap&amp; pixmap, <span class="keyword">const</span> QRectF&amp; subRect )</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    : m_type( Pixmap )</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    m_pixmapData = <span class="keyword">new</span> PixmapData();</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    m_pixmapData-&gt;rect = rect;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    m_pixmapData-&gt;pixmap = pixmap;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    m_pixmapData-&gt;subRect = subRect;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;}</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#a3830b0c0f920588107a3acc1ab05853b">   54</a></span>&#160;<a class="code" href="class_qwt_painter_command.html#a0a3ce67b97475d9ff41c26542d216e22">QwtPainterCommand::QwtPainterCommand</a>( <span class="keyword">const</span> QRectF&amp; rect,</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keyword">const</span> QImage&amp; image, <span class="keyword">const</span> QRectF&amp; subRect,</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        Qt::ImageConversionFlags flags )</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    : m_type( Image )</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    m_imageData = <span class="keyword">new</span> ImageData();</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    m_imageData-&gt;rect = rect;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    m_imageData-&gt;image = image;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    m_imageData-&gt;subRect = subRect;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    m_imageData-&gt;flags = flags;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;}</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#adcd99c908be8b5e57dee2f7dbed73dc3">   70</a></span>&#160;<a class="code" href="class_qwt_painter_command.html#a0a3ce67b97475d9ff41c26542d216e22">QwtPainterCommand::QwtPainterCommand</a>( <span class="keyword">const</span> QPaintEngineState&amp; state )</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    : m_type( State )</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;{</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    m_stateData = <span class="keyword">new</span> StateData();</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    m_stateData-&gt;flags = state.state();</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyPen )</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        m_stateData-&gt;pen = state.pen();</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyBrush )</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        m_stateData-&gt;brush = state.brush();</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyBrushOrigin )</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        m_stateData-&gt;brushOrigin = state.brushOrigin();</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyFont )</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        m_stateData-&gt;font = state.font();</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyBackground )</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        m_stateData-&gt;backgroundMode = state.backgroundMode();</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        m_stateData-&gt;backgroundBrush = state.backgroundBrush();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyTransform )</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        m_stateData-&gt;transform = state.transform();</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyClipEnabled )</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        m_stateData-&gt;isClipEnabled = state.isClipEnabled();</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyClipRegion )</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        m_stateData-&gt;clipRegion = state.clipRegion();</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        m_stateData-&gt;clipOperation = state.clipOperation();</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    }</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyClipPath )</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        m_stateData-&gt;clipPath = state.clipPath();</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        m_stateData-&gt;clipOperation = state.clipOperation();</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    }</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyHints )</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        m_stateData-&gt;renderHints = state.renderHints();</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyCompositionMode )</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        m_stateData-&gt;compositionMode = state.compositionMode();</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">if</span> ( m_stateData-&gt;flags &amp; QPaintEngine::DirtyOpacity )</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        m_stateData-&gt;opacity = state.opacity();</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;}</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#aa67dd2e6a432635c101295de585ffdcd">  128</a></span>&#160;<a class="code" href="class_qwt_painter_command.html#a0a3ce67b97475d9ff41c26542d216e22">QwtPainterCommand::QwtPainterCommand</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_painter_command.html">QwtPainterCommand</a>&amp; other )</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;{</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    copy( other );</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;}</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#af2b2cc7b6d5ce371b3d2456c231f846e">  134</a></span>&#160;<a class="code" href="class_qwt_painter_command.html#af2b2cc7b6d5ce371b3d2456c231f846e">QwtPainterCommand::~QwtPainterCommand</a>()</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;{</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    reset();</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;}</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#a08dc6d9612be3a2e3abf2366935e7370">  145</a></span>&#160;<a class="code" href="class_qwt_painter_command.html">QwtPainterCommand</a>&amp; <a class="code" href="class_qwt_painter_command.html#a08dc6d9612be3a2e3abf2366935e7370">QwtPainterCommand::operator=</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_painter_command.html">QwtPainterCommand</a>&amp; other )</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;{</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    reset();</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    copy( other );</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;}</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="keywordtype">void</span> QwtPainterCommand::copy( <span class="keyword">const</span> <a class="code" href="class_qwt_painter_command.html">QwtPainterCommand</a>&amp; other )</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;{</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    m_type = other.m_type;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordflow">switch</span>( other.m_type )</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    {</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baa8f98e03699c40458ed0c2007dca698ca">Path</a>:</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        {</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;            m_path = <span class="keyword">new</span> QPainterPath( *other.m_path );</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        }</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baa02455f25a984a7dde5992e748af34487">Pixmap</a>:</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        {</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            m_pixmapData = <span class="keyword">new</span> PixmapData( *other.m_pixmapData );</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        }</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baab7dfdaa4ca3c9e6d57bdb27f5dd27669">Image</a>:</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        {</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;            m_imageData = <span class="keyword">new</span> ImageData( *other.m_imageData );</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baaecdaa394f26072749a5f2e1a41639bac">State</a>:</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        {</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;            m_stateData = <span class="keyword">new</span> StateData( *other.m_stateData );</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        }</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    }</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;}</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="keywordtype">void</span> QwtPainterCommand::reset()</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;{</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <span class="keywordflow">switch</span>( m_type )</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baa8f98e03699c40458ed0c2007dca698ca">Path</a>:</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;            <span class="keyword">delete</span> m_path;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        }</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baa02455f25a984a7dde5992e748af34487">Pixmap</a>:</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        {</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;            <span class="keyword">delete</span> m_pixmapData;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baab7dfdaa4ca3c9e6d57bdb27f5dd27669">Image</a>:</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;            <span class="keyword">delete</span> m_imageData;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        }</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baaecdaa394f26072749a5f2e1a41639bac">State</a>:</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        {</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;            <span class="keyword">delete</span> m_stateData;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        }</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    }</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    m_type = <a class="code" href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baa501f44c9ca82165fd3c76fd3f50d07dd">Invalid</a>;</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;}</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#a19fa09138a8775e721817d4ca309f5ac">  216</a></span>&#160;QPainterPath* <a class="code" href="class_qwt_painter_command.html#a19fa09138a8775e721817d4ca309f5ac">QwtPainterCommand::path</a>()</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;{</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keywordflow">return</span> m_path;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;}</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160; </div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#aa85782270cf4ba4c9c20036e5e9780b3">  222</a></span>&#160;QwtPainterCommand::PixmapData* <a class="code" href="class_qwt_painter_command.html#aa85782270cf4ba4c9c20036e5e9780b3">QwtPainterCommand::pixmapData</a>()</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;{</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keywordflow">return</span> m_pixmapData;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;}</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160; </div>
<div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#acb12c36d4b9df791bd4f2089e6c147d9">  228</a></span>&#160;QwtPainterCommand::ImageData* <a class="code" href="class_qwt_painter_command.html#acb12c36d4b9df791bd4f2089e6c147d9">QwtPainterCommand::imageData</a>()</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;{</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keywordflow">return</span> m_imageData;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;}</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="class_qwt_painter_command.html#ae801f205610698ebc9f704cdcedafb68">  234</a></span>&#160;QwtPainterCommand::StateData* <a class="code" href="class_qwt_painter_command.html#ae801f205610698ebc9f704cdcedafb68">QwtPainterCommand::stateData</a>()</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;{</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <span class="keywordflow">return</span> m_stateData;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;}</div>
<div class="ttc" id="aclass_qwt_painter_command_html"><div class="ttname"><a href="class_qwt_painter_command.html">QwtPainterCommand</a></div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8h_source.html#l00032">qwt_painter_command.h:33</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_a08dc6d9612be3a2e3abf2366935e7370"><div class="ttname"><a href="class_qwt_painter_command.html#a08dc6d9612be3a2e3abf2366935e7370">QwtPainterCommand::operator=</a></div><div class="ttdeci">QwtPainterCommand &amp; operator=(const QwtPainterCommand &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8cpp_source.html#l00145">qwt_painter_command.cpp:145</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_a0a3ce67b97475d9ff41c26542d216e22"><div class="ttname"><a href="class_qwt_painter_command.html#a0a3ce67b97475d9ff41c26542d216e22">QwtPainterCommand::QwtPainterCommand</a></div><div class="ttdeci">QwtPainterCommand()</div><div class="ttdoc">Construct an invalid command.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8cpp_source.html#l00013">qwt_painter_command.cpp:13</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_a19fa09138a8775e721817d4ca309f5ac"><div class="ttname"><a href="class_qwt_painter_command.html#a19fa09138a8775e721817d4ca309f5ac">QwtPainterCommand::path</a></div><div class="ttdeci">QPainterPath * path()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8cpp_source.html#l00216">qwt_painter_command.cpp:216</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_a6619a454c4332c02412611467935b7baa02455f25a984a7dde5992e748af34487"><div class="ttname"><a href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baa02455f25a984a7dde5992e748af34487">QwtPainterCommand::Pixmap</a></div><div class="ttdeci">@ Pixmap</div><div class="ttdoc">Draw a QPixmap.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8h_source.html#l00045">qwt_painter_command.h:45</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_a6619a454c4332c02412611467935b7baa501f44c9ca82165fd3c76fd3f50d07dd"><div class="ttname"><a href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baa501f44c9ca82165fd3c76fd3f50d07dd">QwtPainterCommand::Invalid</a></div><div class="ttdeci">@ Invalid</div><div class="ttdoc">Invalid command.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8h_source.html#l00039">qwt_painter_command.h:39</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_a6619a454c4332c02412611467935b7baa8f98e03699c40458ed0c2007dca698ca"><div class="ttname"><a href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baa8f98e03699c40458ed0c2007dca698ca">QwtPainterCommand::Path</a></div><div class="ttdeci">@ Path</div><div class="ttdoc">Draw a QPainterPath.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8h_source.html#l00042">qwt_painter_command.h:42</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_a6619a454c4332c02412611467935b7baab7dfdaa4ca3c9e6d57bdb27f5dd27669"><div class="ttname"><a href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baab7dfdaa4ca3c9e6d57bdb27f5dd27669">QwtPainterCommand::Image</a></div><div class="ttdeci">@ Image</div><div class="ttdoc">Draw a QImage.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8h_source.html#l00048">qwt_painter_command.h:48</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_a6619a454c4332c02412611467935b7baaecdaa394f26072749a5f2e1a41639bac"><div class="ttname"><a href="class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baaecdaa394f26072749a5f2e1a41639bac">QwtPainterCommand::State</a></div><div class="ttdeci">@ State</div><div class="ttdoc">QPainter state change.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8h_source.html#l00052">qwt_painter_command.h:51</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_aa85782270cf4ba4c9c20036e5e9780b3"><div class="ttname"><a href="class_qwt_painter_command.html#aa85782270cf4ba4c9c20036e5e9780b3">QwtPainterCommand::pixmapData</a></div><div class="ttdeci">PixmapData * pixmapData()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8cpp_source.html#l00222">qwt_painter_command.cpp:222</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_acb12c36d4b9df791bd4f2089e6c147d9"><div class="ttname"><a href="class_qwt_painter_command.html#acb12c36d4b9df791bd4f2089e6c147d9">QwtPainterCommand::imageData</a></div><div class="ttdeci">ImageData * imageData()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8cpp_source.html#l00228">qwt_painter_command.cpp:228</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_ae801f205610698ebc9f704cdcedafb68"><div class="ttname"><a href="class_qwt_painter_command.html#ae801f205610698ebc9f704cdcedafb68">QwtPainterCommand::stateData</a></div><div class="ttdeci">StateData * stateData()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8cpp_source.html#l00234">qwt_painter_command.cpp:234</a></div></div>
<div class="ttc" id="aclass_qwt_painter_command_html_af2b2cc7b6d5ce371b3d2456c231f846e"><div class="ttname"><a href="class_qwt_painter_command.html#af2b2cc7b6d5ce371b3d2456c231f846e">QwtPainterCommand::~QwtPainterCommand</a></div><div class="ttdeci">~QwtPainterCommand()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter__command_8cpp_source.html#l00134">qwt_painter_command.cpp:134</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_painter_command.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
